/*
 * AIAttackWeaker.h
 *
 *  Created on: 2011-5-5
 *      Author: Administrator
 */

#ifndef AIATTACKWEAKER_H_
#define AIATTACKWEAKER_H_

#include "AI.h"

using namespace Osp::Base::Collection;

namespace Galaxy {

class AIAttackWeaker : public AI {
public:
	AIAttackWeaker();
	virtual ~AIAttackWeaker();

public:
	virtual void Play(GalaxyThread* pThread, Player* pMe,
			Osp::Base::Collection::ArrayList* pMyPlanets,
			Osp::Base::Collection::ArrayList* pOtherPlanets,
			Osp::Base::Collection::HashMap* pAccessiblePlanets);
private:
	bool TryAttack(GalaxyThread* pThread, Planet* pSource, Player* pMe, HashMap* pAccessiblePlanets);

private:
	int __unitsKeeped;
};
}

#endif /* AIATTACKWEAKER_H_ */
